Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |sub

std/ops/num::|sub


Usage

|sub<N>(a, b)

Generics

◻ N: Sub

Parameters

↳ a: N
↳ b: N

Return

↴ N


Sustract b from a

This function is infaillible but may overflow if a - b is out of bounds for the data type.